package com.llly.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

public class Easybuy_order implements Serializable {
    //`id``userId``loginName``userAddress``createTime``cost``serialNumber`
    private Integer id;//主键
    private Integer userId;//用户主键
    private String loginName;//
    private String userAddress;//用户地址
    private Timestamp createTime;//创建时间
    private float cost;//总消费
    private String serialNumber;//订单号

    private Integer isdelete;//是否删除(1：删除 0：未删除)
    //存储自己子类
    private List<Easybuy_pro_det> ordList;
    //一对多 一个订单对应多个商品

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public float getCost() {
        return cost;
    }

    public void setCost(float cost) {
        this.cost = cost;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public List<Easybuy_pro_det> getOrdList() {
        return ordList;
    }

    public void setOrdList(List<Easybuy_pro_det> ordList) {
        this.ordList = ordList;
    }

    @Override
    public String toString() {
        return "Easybuy_order{" +
                "id=" + id +
                ", userId=" + userId +
                ", loginName='" + loginName + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", createTime=" + createTime +
                ", cost=" + cost +
                ", serialNumber='" + serialNumber + '\'' +
                ", isdelete=" + isdelete +
                ", ordList=" + ordList +
                '}';
    }
}
